package com.education.wisdom.pojo;

import com.education.common.core.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户喜欢的课程表 jr_catalog_user_like
 * 
 * @author ruoyi
 * @date 2019-02-15
 */
public class CatalogUserLike extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Integer id;
	/** 祖先节点 */
	private Integer catalogId;
	/** 后代节点 */
	private String userId;
	/** 学习时间 */
	private Date createTime;
	/** 删除标记 */
	private String delFlag;
	/** 学习状态（0：学习中，1：已学完） */
	private String state;

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getId()
	{
		return id;
	}
	public void setCatalogId(Integer catalogId)
	{
		this.catalogId = catalogId;
	}

	public Integer getCatalogId()
	{
		return catalogId;
	}
	public void setUserId(String userId)
	{
		this.userId = userId;
	}

	public String getUserId()
	{
		return userId;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getCreateTime()
	{
		return createTime;
	}
	public void setDelFlag(String delFlag)
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag()
	{
		return delFlag;
	}
	public void setState(String state)
	{
		this.state = state;
	}

	public String getState()
	{
		return state;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("catalogId", getCatalogId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .append("state", getState())
            .toString();
    }
}
